package com.ruoyi.production.service.fertilizer;

import java.util.List;
import com.ruoyi.production.domain.fertilizer.FertilizerPurchase;

/**
 * 化肥购买信息Service接口
 *
 * @author ruoyi
 * @date 2021-07-12
 */
public interface IFertilizerPurchaseService
{
    /**
     * 查询化肥购买信息
     *
     * @param fertilizerPurchaseId 化肥购买信息ID
     * @return 化肥购买信息
     */
    public FertilizerPurchase selectFertilizerPurchaseById(Long fertilizerPurchaseId);

    /**
     * 查询化肥购买信息列表
     *
     * @param fertilizerPurchase 化肥购买信息
     * @return 化肥购买信息集合
     */
    public List<FertilizerPurchase> selectFertilizerPurchaseList(FertilizerPurchase fertilizerPurchase);

    /**
     * 新增化肥购买信息
     *
     * @param fertilizerPurchase 化肥购买信息
     * @return 结果
     */
    public int insertFertilizerPurchase(FertilizerPurchase fertilizerPurchase);

    /**
     * 修改化肥购买信息
     *
     * @param fertilizerPurchase 化肥购买信息
     * @return 结果
     */
    public int updateFertilizerPurchase(FertilizerPurchase fertilizerPurchase);

    /**
     * 批量删除化肥购买信息
     *
     * @param fertilizerPurchaseIds 需要删除的化肥购买信息ID
     * @return 结果
     */
    public int deleteFertilizerPurchaseByIds(Long[] fertilizerPurchaseIds);

    /**
     * 删除化肥购买信息信息
     *
     * @param fertilizerPurchaseId 化肥购买信息ID
     * @return 结果
     */
    public int deleteFertilizerPurchaseById(Long fertilizerPurchaseId);
    /**
     * 插入化肥购买表更新化肥量表
     * @param fertilizerPurchase
     * @return
     */
    public int insertPurchaseUpdateAmount(FertilizerPurchase fertilizerPurchase);
}
